<?xml version="1.0" encoding="UTF-8"?>
<!--
  Created by IntelliJ IDEA.
  User: imon
  Date: 2/18/13
  Time: 9:06 PM
-->
<ui:composition template="/templates/layout.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                xmlns:c="http://java.sun.com/jsp/jstl/core">


    <ui:define name="#{var['layout.title']}">
        <title>#{msg['myProfile.title']}</title>
    </ui:define>

    <ui:define name="#{var['layout.content']}">
        <ui:include src="templates/user_menu.xhtml"/>

        <div class="myprofile">

            <h:panelGrid columns="2">
                <p:outputLabel value="#{msg['myProfile.userName']}"/>
                <p:outputLabel value="#{loginController.user.userName}"
                               rendered="#{!empty loginController.user.userName}"/>

                <p:outputLabel value="#{msg['myProfile.email']}"/>
                <p:outputLabel value="#{loginController.user.email}" rendered="#{!empty loginController.user.email}"/>

                <p:outputLabel value="#{msg['myProfile.nationalId']}"/>
                <p:outputLabel value="#{loginController.user.nationalId}"
                               rendered="#{!empty loginController.user.nationalId}"/>

                <p:outputLabel value="#{msg['myProfile.presentAddress']}"/>
                <p:outputLabel value="#{loginController.user.presentAddress}"
                               rendered="#{!empty loginController.user.presentAddress}"/>

                <p:outputLabel value="#{msg['myProfile.permanentAddress']}"/>
                <p:outputLabel value="#{loginController.user.permanentAddress}"
                               rendered="#{!empty loginController.user.permanentAddress}"/>

                <p:outputLabel value="#{msg['myProfile.contactNo']}"/>
                <p:outputLabel value="#{loginController.user.phoneNumber}"
                               rendered="#{!empty loginController.user.phoneNumber}"/>

            </h:panelGrid>

        </div>
    </ui:define>

</ui:composition>